public class Test02{
    public static void main(String[] args){
        Base base = new Derived();
        boolean flag = base instanceof Derived;
        if(flag){
            Derived base2 = (Derived)base;
        }else{
            Fork base2 = (Fork)base;
            base2.show_fork();
        }
    }
    
}